<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
	window.onload = function()
	{
			 var oBtn = document.getElementById('btn1');
				var oUl = document.getElementById('ul1');
		
				oBtn.onclick = function()
				{
						var oLi = document.createElement('li');
						//父级 添加 子节点
						oUl.appendChild(oLi);
				};
	};
	</script>
</head>

<body>
<input type="button" id="btn1" value="Createli">
<ul id="ul1">
	
</ul>
</body>
</html>
